package com.ewo.service.impl.ApplicationPage;

import com.ewo.entity.ApplicationPage.CustomerEquipment;
import com.ewo.entity.ApplicationPage.EmployeeSettlement;
import com.ewo.mapper.EmployeeSettlementMapper;
import com.ewo.service.ApplicationPage.EmployeeSettlementService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class EmployeeSettlementServiceImpl implements EmployeeSettlementService {
    @Resource
    EmployeeSettlementMapper employeeSettlementMapper;
    //根据员工id查找关联员工结算
    public List<EmployeeSettlement> findEmployeeSettlementByEmpId(int empId){
        return employeeSettlementMapper.findEmployeeSettlementByEmpId(empId);
    }

    //根据结算单id查找单条结算信息
    public EmployeeSettlement findEmployeeSettlementByESid(int empId , int es_id){
        return employeeSettlementMapper.findEmployeeSettlementByESid(empId, es_id);
    }

}
